﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using AspNetCs.Common;
using AspNetCs.Enumerations;
using AspNetCs.Bll;

public partial class Users_ScoreRecord : BasePage
{
    private int userId = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        userId = Base_GetUserInfo.UserId;
        if (userId == 0)
        {
            ResultStr(configInfo.InstallDir + "Login.aspx?ReUrl=" + configInfo.InstallDir + "users/ScoreRecord.aspx", "请您登录");
        }
        if (!IsPostBack)
        {
            dataBind();
        }
    }

    protected void dataBind()
    {
        string cmdText = "select * from Integral_Log where UserId={0} order by Id desc";
        cmdText = string.Format(cmdText, this.userId);
        AspNetCs.Common.DataPagesOperate operate = new DataPagesOperate();

        operate.BindRepeater(cmdText, AspNetPager1, "Id desc", "Id", rptAritcleList);


    }
    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        dataBind();
    }
}
